package com.hpjpw.idoapp.service;

import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: ruoyi
 * @BelongsPackage: com.hpjpw.idoapp.service
 * @Author: hpj
 * @CreateTime: 2021-01-07 15:13
 * @Description: 实习宝藏任务模块
 */
@Service
public class IDoTaskService {
    public Boolean isWorker() {
        SysUser user = SecurityUtils.getLoginUser().getUser();
        return user.getDeptId().equals(UserConstants.WORKER_DEPT_ID);
    }
}
